const updateUser = async (data) => {
    return request({
        url: '/api/user/update',
        method: 'POST',
        data: data
    })
}

const getVerifyCode = async (data) => {
    return request({
        url: '/api/user/send/verify-code',
        method: 'POST',
        data
    })
}

const register = async (data) => {
    return request({
        url: '/user/generate-admin',
        method: 'POST',
        data
    })
}

export default {
    updateUser,
    getVerifyCode,
    register
}